package main.java.com.silence.controller;

import com.silence.constant.AttributeConstant;
import com.silence.constant.ViewNameConstant;
import com.silence.pojo.Bill;
import com.silence.pojo.BillType;
import com.silence.service.IBillTypeService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;
import java.util.List;

/**
 * Author: silence
 * Date: 17-6-2
 * 控制路由跳转
 * 无业务逻辑处理 只执行页面跳转
 */
@Controller
public class RouteController {

    /** 登录页 */
    @RequestMapping(value = "/login", method = RequestMethod.GET)
    public String loginPage(){
        return ViewNameConstant.LOGIN;
    }

    /** 注册页 */
    @RequestMapping(value = "/register", method = RequestMethod.GET)
    public String registerPage(){
        return ViewNameConstant.REGISTER;
    }

    /** showMsg页 */
    @RequestMapping(value = "/showMsg", method = RequestMethod.GET)
    public String testPage(){
        return ViewNameConstant.SHOW_MSG;
    }

}
